home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / X11 / XSetState.z / XSetState
Encoding:
Text File  |  2002-10-03  |  5.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXSSSSeeeettttSSSSttttaaaatttteeee((((3333XXXX11111111))))    XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))     XXXXSSSSeeeettttSSSSttttaaaatttteeee((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XSetState, XSetFunction, XSetPlanemask, XSetForeground,
  10.           XSetBackground - GC convenience routines
  11.  
  12.      SSSSYYYYNNNNTTTTAAAAXXXX
  13.           XSetState(_d_i_s_p_l_a_y, _g_c, _f_o_r_e_g_r_o_u_n_d, _b_a_c_k_g_r_o_u_n_d, _f_u_n_c_t_i_o_n,
  14.           _p_l_a_n_e__m_a_s_k)
  15.                 Display *_d_i_s_p_l_a_y;
  16.                 GC _g_c;
  17.                 unsigned long _f_o_r_e_g_r_o_u_n_d, _b_a_c_k_g_r_o_u_n_d;
  18.                 int _f_u_n_c_t_i_o_n;
  19.                 unsigned long _p_l_a_n_e__m_a_s_k;
  20.  
  21.           XSetFunction(_d_i_s_p_l_a_y, _g_c, _f_u_n_c_t_i_o_n)
  22.                 Display *_d_i_s_p_l_a_y;
  23.                 GC _g_c;
  24.                 int _f_u_n_c_t_i_o_n;
  25.  
  26.           XSetPlaneMask(_d_i_s_p_l_a_y, _g_c, _p_l_a_n_e__m_a_s_k)
  27.                 Display *_d_i_s_p_l_a_y;
  28.                 GC _g_c;
  29.                 unsigned long _p_l_a_n_e__m_a_s_k;
  30.  
  31.           XSetForeground(_d_i_s_p_l_a_y, _g_c, _f_o_r_e_g_r_o_u_n_d)
  32.                 Display *_d_i_s_p_l_a_y;
  33.                 GC _g_c;
  34.                 unsigned long _f_o_r_e_g_r_o_u_n_d;
  35.  
  36.           XSetBackground(_d_i_s_p_l_a_y, _g_c, _b_a_c_k_g_r_o_u_n_d)
  37.                 Display *_d_i_s_p_l_a_y;
  38.                 GC _g_c;
  39.                 unsigned long _b_a_c_k_g_r_o_u_n_d;
  40.  
  41.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  42.           _b_a_c_k_g_r_o_u_n_d
  43.                     Specifies the background you want to set for the
  44.                     specified GC.
  45.  
  46.           _d_i_s_p_l_a_y   Specifies the connection to the X server.
  47.  
  48.           _f_o_r_e_g_r_o_u_n_d
  49.                     Specifies the foreground you want to set for the
  50.                     specified GC.
  51.  
  52.           _f_u_n_c_t_i_o_n  Specifies the function you want to set for the
  53.                     specified GC.
  54.  
  55.           _g_c        Specifies the GC.
  56.  
  57.           _p_l_a_n_e__m_a_s_k
  58.                     Specifies the plane mask.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXSSSSeeeettttSSSSttttaaaatttteeee((((3333XXXX11111111))))    XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))     XXXXSSSSeeeettttSSSSttttaaaatttteeee((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  75.           The _X_S_e_t_S_t_a_t_e function sets the foreground, background,
  76.           plane mask, and function components for the specified GC.
  77.  
  78.           _X_S_e_t_S_t_a_t_e can generate _B_a_d_A_l_l_o_c, _B_a_d_G_C, and _B_a_d_V_a_l_u_e errors.
  79.  
  80.           _X_S_e_t_F_u_n_c_t_i_o_n sets a specified value in the specified GC.
  81.  
  82.           _X_S_e_t_F_u_n_c_t_i_o_n can generate _B_a_d_A_l_l_o_c, _B_a_d_G_C, and _B_a_d_V_a_l_u_e
  83.           errors.
  84.  
  85.           The _X_S_e_t_P_l_a_n_e_M_a_s_k function sets the plane mask in the
  86.           specified GC.
  87.  
  88.           _X_S_e_t_P_l_a_n_e_M_a_s_k can generate _B_a_d_A_l_l_o_c and _B_a_d_G_C errors.
  89.  
  90.           The _X_S_e_t_F_o_r_e_g_r_o_u_n_d function sets the foreground in the
  91.           specified GC.
  92.  
  93.           _X_S_e_t_F_o_r_e_g_r_o_u_n_d can generate _B_a_d_A_l_l_o_c and _B_a_d_G_C errors.
  94.  
  95.           The _X_S_e_t_B_a_c_k_g_r_o_u_n_d function sets the background in the
  96.           specified GC.
  97.  
  98.           _X_S_e_t_B_a_c_k_g_r_o_u_n_d can generate _B_a_d_A_l_l_o_c and _B_a_d_G_C errors.
  99.  
  100.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  101.           _B_a_d_A_l_l_o_c  The server failed to allocate the requested
  102.                     resource or server memory.
  103.  
  104.           _B_a_d_G_C     A value for a GContext argument does not name a
  105.                     defined GContext.
  106.  
  107.           _B_a_d_V_a_l_u_e  Some numeric value falls outside the range of
  108.                     values accepted by the request.  Unless a specific
  109.                     range is specified for an argument, the full range
  110.                     defined by the argument's type is accepted.  Any
  111.                     argument defined as a set of alternatives can
  112.                     generate this error.
  113.  
  114.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  115.           XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11),
  116.           XSetClipOrigin(3X11), XSetFillStyle(3X11), XSetFont(3X11),
  117.           XSetLineAttributes(3X11), XSetTile(3X11)
  118.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.